<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Template</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> Template</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|											<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Enter description here.</p>
<p class="description"><p>Enter description here...</p></p>
		<p class="notes">
			Located in <a class="field" href="_library---templates---phplib---phplib.php.html">/library/templates/phplib/phplib.php</a> (line <span class="field"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a72">72</a></span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
								|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em; white-space: nowrap">
						<img src="../../media/images/Class.png"
								 alt=" class"
								 title=" class"
								 style="vertical-align: center"/>
						<a href="../../Templates/PHPLib/Templates_PHPLib_Plus.html">Templates_PHPLib_Plus</a>
					</td>
					<td>
											Enter description here.
										</td>
				</tr>
							</table>
		</div>
	</div>


	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendants</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																																																								<div class="var-title">
					<img src="../../media/images/Variable.png" alt=" " />
					<span class="var-type">string</span>
					<a href="#$classname" title="details" class="var-name">$classname</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/Variable.png" alt=" " />
					<span class="var-type">int</span>
					<a href="#$debug" title="details" class="var-name">$debug</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/PrivateVariable.png" alt=" " />
					<span class="var-type">array</span>
					<a href="#$file" title="details" class="var-name">$file</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/Variable.png" alt=" " />
					<span class="var-type">string</span>
					<a href="#$halt_on_error" title="details" class="var-name">$halt_on_error</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/Variable.png" alt=" " />
					<span class="var-type">string</span>
					<a href="#$last_error" title="details" class="var-name">$last_error</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/PrivateVariable.png" alt=" " />
					<span class="var-type">string</span>
					<a href="#$root" title="details" class="var-name">$root</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/PrivateVariable.png" alt=" " />
					<span class="var-type">string</span>
					<a href="#$unknowns" title="details" class="var-name">$unknowns</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/PrivateVariable.png" alt=" " />
					<span class="var-type">array</span>
					<a href="#$varkeys" title="details" class="var-name">$varkeys</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/PrivateVariable.png" alt=" " />
					<span class="var-type">array</span>
					<a href="#$varvals" title="details" class="var-name">$varvals</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendants</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																																																																																																								<div class="method-definition">
					<img src="../../media/images/Constructor.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#Template" title="details" class="method-name">Template</a>
											([<span class="var-type">$root</span>&nbsp;<span class="var-name">$root</span> = <span class="var-default">&quot;.&quot;</span>], [<span class="var-type">$string</span>&nbsp;<span class="var-name">$unknowns</span> = <span class="var-default">&quot;remove&quot;</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#clear_var" title="details" class="method-name">clear_var</a>
											(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/PrivateMethod.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#filename" title="details" class="method-name">filename</a>
											(<span class="var-type">$filename</span>&nbsp;<span class="var-name">$filename</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#finish" title="details" class="method-name">finish</a>
											(<span class="var-type">$str</span>&nbsp;<span class="var-name">$str</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#get" title="details" class="method-name">get</a>
											(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#get_undefined" title="details" class="method-name">get_undefined</a>
											(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#get_var" title="details" class="method-name">get_var</a>
											(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#get_vars" title="details" class="method-name">get_vars</a>
										()
									</div>
																<div class="method-definition">
					<img src="../../media/images/PrivateMethod.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#halt" title="details" class="method-name">halt</a>
											(<span class="var-type">$msg</span>&nbsp;<span class="var-name">$msg</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#haltmsg" title="details" class="method-name">haltmsg</a>
											(<span class="var-type">$msg</span>&nbsp;<span class="var-name">$msg</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/PrivateMethod.png" alt=" "/>
											<span class="method-result">boolean</span>
										<a href="#loadfile" title="details" class="method-name">loadfile</a>
											(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#p" title="details" class="method-name">p</a>
											(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#parse" title="details" class="method-name">parse</a>
											(<span class="var-type">$target</span>&nbsp;<span class="var-name">$target</span>, <span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>, [<span class="var-type">$append</span>&nbsp;<span class="var-name">$append</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">false</span>
										<a href="#pparse" title="details" class="method-name">pparse</a>
											(<span class="var-type">$target</span>&nbsp;<span class="var-name">$target</span>, <span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>, [<span class="var-type">$append</span>&nbsp;<span class="var-name">$append</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">false</span>
										<a href="#psubst" title="details" class="method-name">psubst</a>
											(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">boolean</span>
										<a href="#set_block" title="details" class="method-name">set_block</a>
											(<span class="var-type">$parent</span>&nbsp;<span class="var-name">$parent</span>, <span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>, [<span class="var-type">$name</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">&quot;&quot;</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">boolean</span>
										<a href="#set_file" title="details" class="method-name">set_file</a>
											(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>, [<span class="var-type">$filename</span>&nbsp;<span class="var-name">$filename</span> = <span class="var-default">&quot;&quot;</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">boolean</span>
										<a href="#set_root" title="details" class="method-name">set_root</a>
											(<span class="var-type">$root</span>&nbsp;<span class="var-name">$root</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#set_unknowns" title="details" class="method-name">set_unknowns</a>
											([<span class="var-type">$unknowns</span>&nbsp;<span class="var-name">$unknowns</span> = <span class="var-default">&quot;remove&quot;</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#set_var" title="details" class="method-name">set_var</a>
											(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>, [<span class="var-type">$value</span>&nbsp;<span class="var-name">$value</span> = <span class="var-default">&quot;&quot;</span>], [<span class="var-type">$append</span>&nbsp;<span class="var-name">$append</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#subst" title="details" class="method-name">subst</a>
											(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#unset_var" title="details" class="method-name">unset_var</a>
											(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/PrivateMethod.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#varname" title="details" class="method-name">varname</a>
											(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
									</div>
											</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			
<a name="var$classname" id="$classname"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$classname</span>
			 = <span class="var-default"> &quot;Template&quot;</span>			(line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a80">80</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Serialization helper, the name of this class.</p>
<p class="description"><p>Serialization helper, the name of this class.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$debug" id="$debug"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">int</span>
			<span class="var-name">$debug</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a96">96</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Determines how much debugging output Template will produce.</p>
<p class="description"><p>Determines how much debugging output Template will produce. This is a bitwise mask of available debug levels:<ol><li>= no debugging</li><li>= debug variable assignments</li><li>= debug calls to get variable</li></ol> 4 = debug internals (outputs all function calls with parameters).
 Note: setting $this-&gt;debug = true will enable debugging of variable assignments only which is the same behaviour as versions up to release 7.2d.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$file" id="$file"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../../media/images/PrivateVariable.png" />
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$file</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a116">116</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">A hash of strings forming a translation table which translates variable names into names of files containing the variable content.</p>
<p class="description"><p>A hash of strings forming a translation table which translates variable names into names of files containing the variable content. $file[varname] = &quot;filename&quot;;</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodset_file">Template::set_file()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$halt_on_error" id="$halt_on_error"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$halt_on_error</span>
			 = <span class="var-default"> &quot;yes&quot;</span>			(line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a159">159</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Determines how Template handles error conditions.</p>
<p class="description"><p>Determines how Template handles error conditions. &quot;yes&quot;      = the error is reported, then execution is halted &quot;report&quot;   = the error is reported, then execution continues by returning &quot;false&quot; &quot;no&quot;       = errors are silently ignored, and execution resumes reporting &quot;false&quot;</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodhalt">Template::halt()</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$last_error" id="$last_error"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$last_error</span>
			 = <span class="var-default"> &quot;&quot;</span>			(line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a168">168</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The last error message is retained in this variable.</p>
<p class="description"><p>The last error message is retained in this variable.</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodhalt">Template::halt()</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$root" id="$root"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../../media/images/PrivateVariable.png" />
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$root</span>
			 = <span class="var-default"> &quot;.&quot;</span>			(line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a105">105</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The base directory from which template files are loaded.</p>
<p class="description"><p>The base directory from which template files are loaded.</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodset_root">Template::set_root()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$unknowns" id="$unknowns"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../../media/images/PrivateVariable.png" />
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$unknowns</span>
			 = <span class="var-default"> &quot;remove&quot;</span>			(line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a147">147</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Determines how to output variable tags with no assigned value in templates.</p>
<p class="description"><p>Determines how to output variable tags with no assigned value in templates.</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodset_unknowns">Template::set_unknowns()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$varkeys" id="$varkeys"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../../media/images/PrivateVariable.png" />
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$varkeys</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a127">127</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">A hash of strings forming a translation table which translates variable names into regular expressions for themselves.</p>
<p class="description"><p>A hash of strings forming a translation table which translates variable names into regular expressions for themselves. $varkeys[varname] = &quot;/varname/&quot;</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodset_var">Template::set_var()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$varvals" id="$varvals"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../../media/images/PrivateVariable.png" />
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$varvals</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a138">138</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">A hash of strings forming a translation table which translates variable names into values for their respective varkeys.</p>
<p class="description"><p>A hash of strings forming a translation table which translates variable names into values for their respective varkeys. $varvals[varname] = &quot;value&quot;</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodset_var">Template::set_var()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
														<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodTemplate" id="Template"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Constructor.png" />
		<span class="method-title">Constructor Template</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a184">184</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** Class constructor.</p>
<p class="description"><p>**************************************************************************** Class constructor. May be called with two optional parameters. The first parameter sets the template directory the second parameter sets the policy regarding handling of unknown variables.
 usage: Template([string $root = &quot;.&quot;], [string $unknowns = &quot;remove&quot;])</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodset_root">Template::set_root()</a></li>
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodset_unknowns">Template::set_unknowns()</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			Template
		</span>
					([<span class="var-type">$root</span>&nbsp;<span class="var-name">$root</span> = <span class="var-default">&quot;.&quot;</span>], [<span class="var-type">$string</span>&nbsp;<span class="var-name">$unknowns</span> = <span class="var-default">&quot;remove&quot;</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$root</span>
				<span class="var-name">$root</span><span class="var-description">: path to template directory</span>			</li>
					<li>
				<span class="var-type">$string</span>
				<span class="var-name">$unknowns</span><span class="var-description">: what to do with undefined variables</span>			</li>
				</ul>
		
			
	</div>
<a name="methodclear_var" id="clear_var"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">clear_var</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a414">414</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This functions clears the value of a variable.</p>
<p class="description"><p>**************************************************************************** This functions clears the value of a variable.
 It may be called with either a varname as a string or an array with the values being the varnames to be cleared.
 The function sets the value of the variable in the $varkeys and $varvals hashes to &quot;&quot;. It is not necessary for a variable to exist in these hashes before calling this function.
 usage: clear_var(string $varname) or usage: clear_var(array $varname = (string $varname))</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			clear_var
		</span>
					(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: either a string containing a varname or an array of varnames.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfilename" id="filename"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/PrivateMethod.png" />
		<span class="method-title">filename</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a839">839</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** When called with a relative pathname, this function will return the pathname with $this-&gt;root prepended.</p>
<p class="description"><p>**************************************************************************** When called with a relative pathname, this function will return the pathname with $this-&gt;root prepended. Absolute pathnames are returned unchanged.
 Returns: a string containing an absolute pathname.
 usage: filename(string $filename)</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodset_root">Template::set_root()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			filename
		</span>
					(<span class="var-type">$filename</span>&nbsp;<span class="var-name">$filename</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$filename</span>
				<span class="var-name">$filename</span><span class="var-description">: a string containing a filename</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfinish" id="finish"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">finish</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a770">770</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This function returns the finished version of $str. regarding unresolved variable names will be applied to $str.</p>
<p class="description"><p>**************************************************************************** This function returns the finished version of $str. That is, the policy regarding unresolved variable names will be applied to $str.
 Returns: a finished string derived from $str and $this-&gt;unknowns.
 usage: finish(string $str)</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodset_unknowns">Template::set_unknowns()</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			finish
		</span>
					(<span class="var-type">$str</span>&nbsp;<span class="var-name">$str</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$str</span>
				<span class="var-name">$str</span><span class="var-description">: a string to which to apply the unresolved variable policy</span>			</li>
				</ul>
		
			
	</div>
<a name="methodget" id="get"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">get</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a821">821</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This function returns the finished version of the value of the variable named by $varname. applied to the variable $varname and the result returned.</p>
<p class="description"><p>**************************************************************************** This function returns the finished version of the value of the variable named by $varname. That is, the policy regarding unresolved variable names will be applied to the variable $varname and the result returned.
 Returns: a finished string derived from the variable $varname.
 usage: get(string $varname)</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodfinish">Template::finish()</a></li>
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodset_unknowns">Template::set_unknowns()</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			get
		</span>
					(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: a string containing the name of the variable to finish</span>			</li>
				</ul>
		
			
	</div>
<a name="methodget_undefined" id="get_undefined"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">get_undefined</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a724">724</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This function returns a hash of unresolved variable names in $varname, keyed by their names (that is, the hash has the form $a[$name] = $name).</p>
<p class="description"><p>**************************************************************************** This function returns a hash of unresolved variable names in $varname, keyed by their names (that is, the hash has the form $a[$name] = $name).
 Returns: a hash of varname/varname pairs or false on error.
 usage: get_undefined(string $varname)</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			get_undefined
		</span>
					(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: a string containing the name the name of the variable to scan for unresolved variables</span>			</li>
				</ul>
		
			
	</div>
<a name="methodget_var" id="get_var"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">get_var</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a683">683</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This function returns the value of the variable named by $varname.</p>
<p class="description"><p>**************************************************************************** This function returns the value of the variable named by $varname. If $varname references a file and that file has not been loaded yet, the variable will be reported as empty.
 When called with an array of variable names this function will return a a hash of variable values keyed by their names.
 Returns: a string or an array containing the value of $varname.
 usage: get_var(string $varname) or usage: get_var(array $varname)</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> or array</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			get_var
		</span>
					(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: if a string, the name the name of the variable to get the value of, or if an array a list of variables to return the value of</span>			</li>
				</ul>
		
			
	</div>
<a name="methodget_vars" id="get_vars"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">get_vars</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a653">653</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This function returns an associative array of all defined variables with the name as the key and the value of the variable as the value.</p>
<p class="description"><p>**************************************************************************** This function returns an associative array of all defined variables with the name as the key and the value of the variable as the value.
 This is mostly useful for debugging. Also note that $this-&gt;debug can be used to echo all variable assignments as they occur and to trace execution.
 Returns: a hash of all defined variable values keyed by their names.
 usage: get_vars()</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#var$debug">Template::$debug</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			get_vars
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodhalt" id="halt"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/PrivateMethod.png" />
		<span class="method-title">halt</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a944">944</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This function is called whenever an error occurs and will handle the error according to the policy defined in $this-&gt;halt_on_error. error message will be saved in $this-&gt;last_error.</p>
<p class="description"><p>**************************************************************************** This function is called whenever an error occurs and will handle the error according to the policy defined in $this-&gt;halt_on_error. Additionally the error message will be saved in $this-&gt;last_error.
 Returns: always returns false.
 usage: halt(string $msg)</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#var$halt_on_error">Template::$halt_on_error</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			halt
		</span>
					(<span class="var-type">$msg</span>&nbsp;<span class="var-name">$msg</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$msg</span>
				<span class="var-name">$msg</span><span class="var-description">: a string containing an error message</span>			</li>
				</ul>
		
			
	</div>
<a name="methodhaltmsg" id="haltmsg"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">haltmsg</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a971">971</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This function prints an error message.</p>
<p class="description"><p>**************************************************************************** This function prints an error message. It can be overridden by your subclass of Template. It will be called with an error message to display.
 usage: haltmsg(string $msg)</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodhalt">Template::halt()</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			haltmsg
		</span>
					(<span class="var-type">$msg</span>&nbsp;<span class="var-name">$msg</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$msg</span>
				<span class="var-name">$msg</span><span class="var-description">: a string containing the error message to display</span>			</li>
				</ul>
		
			
	</div>
<a name="methodloadfile" id="loadfile"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/PrivateMethod.png" />
		<span class="method-title">loadfile</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a891">891</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** If a variable's value is undefined and the variable has a filename stored in $this-&gt;file[$varname] then the backing file will be loaded and the file's contents will be assigned as the variable's value.</p>
<p class="description"><p>**************************************************************************** If a variable's value is undefined and the variable has a filename stored in $this-&gt;file[$varname] then the backing file will be loaded and the file's contents will be assigned as the variable's value.
 Note that the behaviour of this function changed slightly after the 7.2d release. Where previously a variable was reloaded from file if the value was empty, now this is not done. This allows a variable to be loaded then set to &quot;&quot;, and also prevents attempts to load empty variables. Files are now only loaded if $this-&gt;varvals[$varname] is unset.
 Returns: true on success, false on error.
 usage: loadfile(string $varname)</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodset_file">Template::set_file()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			loadfile
		</span>
					(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: a string containing the name of a variable to load</span>			</li>
				</ul>
		
			
	</div>
<a name="methodp" id="p"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">p</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a801">801</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This function prints the finished version of the value of the variable named by $varname. applied to the variable $varname then it will be printed.</p>
<p class="description"><p>**************************************************************************** This function prints the finished version of the value of the variable named by $varname. That is, the policy regarding unresolved variable names will be applied to the variable $varname then it will be printed.
 usage: p(string $varname)</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodfinish">Template::finish()</a></li>
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodset_unknowns">Template::set_unknowns()</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			p
		</span>
					(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: a string containing the name of the variable to finish and print</span>			</li>
				</ul>
		
			
	</div>
<a name="methodparse" id="parse"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">parse</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a579">579</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** The function substitutes the values of all defined variables in the variable named $varname and stores or appends the result in the variable named $target.</p>
<p class="description"><p>**************************************************************************** The function substitutes the values of all defined variables in the variable named $varname and stores or appends the result in the variable named $target.
 It may be called with either a target and a varname as two strings or a target as a string and an array of variable names in varname.
 The function inserts the new value of the variable into the $varkeys and $varvals hashes. It is not necessary for a variable to exist in these hashes before calling this function.
 An optional third parameter allows the value for each varname to be appended to the existing target variable instead of replacing it. The default is to replace.
 If $target and $varname are both strings, the substituted value of the variable $varname is inserted into or appended to $target.
 If $handle is an array of variable names the variables named by $handle are sequentially substituted and the result of each substitution step is inserted into or appended to in $target. The resulting substitution is available in the variable named by $target, as is each intermediate step for the next $varname in sequence. Note that while it is possible, it is only rarely desirable to call this function with an array of varnames and with $append = true. This append feature was introduced after the 7.2d release.
 Returns: the last value assigned to $target.
 usage: parse(string $target, string $varname, [boolean $append]) or usage: parse(string $target, array $varname = (string $varname), [boolean $append])</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodsubst">Template::subst()</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			parse
		</span>
					(<span class="var-type">$target</span>&nbsp;<span class="var-name">$target</span>, <span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>, [<span class="var-type">$append</span>&nbsp;<span class="var-name">$append</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$target</span>
				<span class="var-name">$target</span><span class="var-description">: a string containing the name of the variable into which substituted $varnames are to be stored</span>			</li>
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: if a string, the name the name of the variable to substitute or if an array a list of variables to be substituted</span>			</li>
					<li>
				<span class="var-type">$append</span>
				<span class="var-name">$append</span><span class="var-description">: if true, the substituted variables are appended to $target otherwise the existing value of $target is replaced</span>			</li>
				</ul>
		
			
	</div>
<a name="methodpparse" id="pparse"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">pparse</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a629">629</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This is shorthand for print $this-&gt;parse(.</p>
<p class="description"><p>**************************************************************************** This is shorthand for print $this-&gt;parse(...) and is functionally identical. See parse for further details.
 Returns: always returns false.
 usage: pparse(string $target, string $varname, [boolean $append]) or usage: pparse(string $target, array $varname = (string $varname), [boolean $append])</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodparse">Template::parse()</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">false</span>
		<span class="method-name">
			pparse
		</span>
					(<span class="var-type">$target</span>&nbsp;<span class="var-name">$target</span>, <span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>, [<span class="var-type">$append</span>&nbsp;<span class="var-name">$append</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$target</span>
				<span class="var-name">$target</span><span class="var-description">: a string containing the name of the variable into which substituted $varnames are to be stored</span>			</li>
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: if a string, the name the name of the variable to substitute or if an array a list of variables to be substituted</span>			</li>
					<li>
				<span class="var-type">$append</span>
				<span class="var-name">$append</span><span class="var-description">: if true, the substituted variables are appended to $target otherwise the existing value of $target is replaced</span>			</li>
				</ul>
		
			
	</div>
<a name="methodpsubst" id="psubst"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">psubst</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a529">529</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This is shorthand for print $this-&gt;subst($varname). details.</p>
<p class="description"><p>**************************************************************************** This is shorthand for print $this-&gt;subst($varname). See subst for further details.
 Returns: always returns false.
 usage: psubst(string $varname)</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#methodsubst">Template::subst()</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">false</span>
		<span class="method-name">
			psubst
		</span>
					(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: the name of the variable within which variables are to be substituted</span>			</li>
				</ul>
		
			
	</div>
<a name="methodset_block" id="set_block"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">set_block</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a315">315</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** A variable $parent may contain a variable block defined by: &amp;lt;!-- BEGIN $varname --&amp;gt; content &amp;lt;!-- END $varname --&amp;gt;. that block from $parent and replaces it with a variable reference named $name.</p>
<p class="description"><p>**************************************************************************** A variable $parent may contain a variable block defined by: &amp;lt;!-- BEGIN $varname --&amp;gt; content &amp;lt;!-- END $varname --&amp;gt;. This function removes that block from $parent and replaces it with a variable reference named $name. The block is inserted into the varkeys and varvals hashes. If $name is omitted, it is assumed to be the same as $varname.
 Blocks may be nested but care must be taken to extract the blocks in order from the innermost block to the outermost block.
 Returns true on success, false on error.
 usage: set_block(string $parent, string $varname, [string $name = &quot;&quot;])</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			set_block
		</span>
					(<span class="var-type">$parent</span>&nbsp;<span class="var-name">$parent</span>, <span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>, [<span class="var-type">$name</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">&quot;&quot;</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$parent</span>
				<span class="var-name">$parent</span><span class="var-description">: a string containing the name of the parent variable</span>			</li>
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: a string containing the name of the block to be extracted</span>			</li>
					<li>
				<span class="var-type">$name</span>
				<span class="var-name">$name</span><span class="var-description">: the name of the variable in which to store the block</span>			</li>
				</ul>
		
			
	</div>
<a name="methodset_file" id="set_file"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">set_file</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a268">268</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** Defines a filename for the initial value of a variable.</p>
<p class="description"><p>**************************************************************************** Defines a filename for the initial value of a variable.
 It may be passed either a varname and a file name as two strings or a hash of strings with the key being the varname and the value being the file name.
 The new mappings are stored in the array $this-&gt;file. The files are not loaded yet, but only when needed.
 Returns true on success, false on error.
 usage: set_file(array $filelist = (string $varname =&gt; string $filename)) or usage: set_file(string $varname, string $filename)</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			set_file
		</span>
					(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>, [<span class="var-type">$filename</span>&nbsp;<span class="var-name">$filename</span> = <span class="var-default">&quot;&quot;</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: either a string containing a varname or a hash of varname/file name pairs.</span>			</li>
					<li>
				<span class="var-type">$filename</span>
				<span class="var-name">$filename</span><span class="var-description">: if varname is a string this is the filename otherwise filename is not required</span>			</li>
				</ul>
		
			
	</div>
<a name="methodset_root" id="set_root"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">set_root</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a207">207</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** Checks that $root is a valid directory and if so sets this directory as the base directory from which templates are loaded by storing the value in $this-&gt;root.</p>
<p class="description"><p>**************************************************************************** Checks that $root is a valid directory and if so sets this directory as the base directory from which templates are loaded by storing the value in $this-&gt;root. Relative filenames are prepended with the path in $this-&gt;root.
 Returns true on success, false on error.
 usage: set_root(string $root)</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#var$root">Template::$root</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			set_root
		</span>
					(<span class="var-type">$root</span>&nbsp;<span class="var-name">$root</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$root</span>
				<span class="var-name">$root</span><span class="var-description">: string containing new template directory</span>			</li>
				</ul>
		
			
	</div>
<a name="methodset_unknowns" id="set_unknowns"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">set_unknowns</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a239">239</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** Sets the policy for dealing with unresolved variable names.</p>
<p class="description"><p>**************************************************************************** Sets the policy for dealing with unresolved variable names.
 unknowns defines what to do with undefined template variables &quot;remove&quot;   = remove undefined variables &quot;comment&quot;  = replace undefined variables with comments &quot;keep&quot;     = keep undefined variables
 Note: &quot;comment&quot; can cause unexpected results when the variable tag is embedded inside an HTML tag, for example a tag which is expected to be replaced with a URL.
 usage: set_unknowns(string $unknowns)</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../Templates/PHPLib/Template.html#var$unknowns">Template::$unknowns</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			set_unknowns
		</span>
					([<span class="var-type">$unknowns</span>&nbsp;<span class="var-name">$unknowns</span> = <span class="var-default">&quot;remove&quot;</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$unknowns</span>
				<span class="var-name">$unknowns</span><span class="var-description">: new value for unknowns</span>			</li>
				</ul>
		
			
	</div>
<a name="methodset_var" id="set_var"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">set_var</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a363">363</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This functions sets the value of a variable.</p>
<p class="description"><p>**************************************************************************** This functions sets the value of a variable.
 It may be called with either a varname and a value as two strings or an an associative array with the key being the varname and the value being the new variable value.
 The function inserts the new value of the variable into the $varkeys and $varvals hashes. It is not necessary for a variable to exist in these hashes before calling this function.
 An optional third parameter allows the value for each varname to be appended to the existing variable instead of replacing it. The default is to replace. This feature was introduced after the 7.2d release.
 usage: set_var(string $varname, [string $value = &quot;&quot;], [boolean $append = false]) or usage: set_var(array $varname = (string $varname =&gt; string $value), [mixed $dummy_var], [boolean $append = false])</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			set_var
		</span>
					(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>, [<span class="var-type">$value</span>&nbsp;<span class="var-name">$value</span> = <span class="var-default">&quot;&quot;</span>], [<span class="var-type">$append</span>&nbsp;<span class="var-name">$append</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: either a string containing a varname or a hash of varname/value pairs.</span>			</li>
					<li>
				<span class="var-type">$value</span>
				<span class="var-name">$value</span><span class="var-description">: if $varname is a string this contains the new value for the variable otherwise this parameter is ignored</span>			</li>
					<li>
				<span class="var-type">$append</span>
				<span class="var-name">$append</span><span class="var-description">: if true, the value is appended to the variable's existing value</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsubst" id="subst"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">subst</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a494">494</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This function fills in all the variables contained within the variable named $varname. original value of the variable varname is not changed. is not &quot;finished&quot;, that is, the unresolved variable name policy has not been applied yet.</p>
<p class="description"><p>**************************************************************************** This function fills in all the variables contained within the variable named $varname. The resulting value is returned as the function result and the original value of the variable varname is not changed. The resulting string is not &quot;finished&quot;, that is, the unresolved variable name policy has not been applied yet.
 Returns: the value of the variable $varname with all variables substituted.
 usage: subst(string $varname)</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			subst
		</span>
					(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: the name of the variable within which variables are to be substituted</span>			</li>
				</ul>
		
			
	</div>
<a name="methodunset_var" id="unset_var"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">unset_var</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a455">455</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This functions unsets a variable completely.</p>
<p class="description"><p>**************************************************************************** This functions unsets a variable completely.
 It may be called with either a varname as a string or an array with the values being the varnames to be cleared.
 The function removes the variable from the $varkeys and $varvals hashes. It is not necessary for a variable to exist in these hashes before calling this function.
 usage: unset_var(string $varname) or usage: unset_var(array $varname = (string $varname))</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			unset_var
		</span>
					(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: either a string containing a varname or an array of varnames.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodvarname" id="varname"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/PrivateMethod.png" />
		<span class="method-title">varname</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_PHPLib_librarytemplatesphplibphplib.php.html#a866">866</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">**************************************************************************** This function will construct a regexp for a given variable name with any special chars quoted.</p>
<p class="description"><p>**************************************************************************** This function will construct a regexp for a given variable name with any special chars quoted.
 Returns: a string containing an escaped variable name.
 usage: varname(string $varname)</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			varname
		</span>
					(<span class="var-type">$varname</span>&nbsp;<span class="var-name">$varname</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$varname</span>
				<span class="var-name">$varname</span><span class="var-description">: a string containing a variable name</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Tue, 02 Mar 2010 07:47:14 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>